package com.ruoyi.project.treat.domain;

import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Objects;

/**
 * 用户表 system_user
 *
 * @author ruoyi
 */
public class SystemUser extends BaseEntity {
    /*用户ID*/
    private Long userId;
    /*用户姓名*/
    private String userName;
    /*手机号【登录身份】*/
    private String userPhone;
    /*性别  0男  1女*/
    private String userSex;
    /*年龄*/
    private Long userAge;
    /*是否排班 Y是  N否*/
    private String userClass;
    /*级别*/
    private String userLevel;
    /*背景*/
    private String userBackground;
    /*状态  0正常  1禁用*/
    private String status;
    /*部门id （外键）*/
    private Long systemDeptId;
    /*连接密码表（外键）*/
    private Long systemSysId;

    /*部门*/
    private SystemDept systemDept;

    public SystemUser() {
    }

    public SystemUser(Long userId, String userName, String userPhone, String userSex, Long userAge, String userClass, String userLevel, String userBackground, String status, Long systemDeptId, Long systemSysId, SystemDept systemDept) {
        this.userId = userId;
        this.userName = userName;
        this.userPhone = userPhone;
        this.userSex = userSex;
        this.userAge = userAge;
        this.userClass = userClass;
        this.userLevel = userLevel;
        this.userBackground = userBackground;
        this.status = status;
        this.systemDeptId = systemDeptId;
        this.systemSysId = systemSysId;
        this.systemDept = systemDept;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public Long getUserAge() {
        return userAge;
    }

    public void setUserAge(Long userAge) {
        this.userAge = userAge;
    }

    public String getUserClass() {
        return userClass;
    }

    public void setUserClass(String userClass) {
        this.userClass = userClass;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    public String getUserBackground() {
        return userBackground;
    }

    public void setUserBackground(String userBackground) {
        this.userBackground = userBackground;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getSystemDeptId() {
        return systemDeptId;
    }

    public void setSystemDeptId(Long systemDeptId) {
        this.systemDeptId = systemDeptId;
    }

    public Long getSystemSysId() {
        return systemSysId;
    }

    public void setSystemSysId(Long systemSysId) {
        this.systemSysId = systemSysId;
    }

    public SystemDept getSystemDept() {
        return systemDept;
    }

    public void setSystemDept(SystemDept systemDept) {
        this.systemDept = systemDept;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SystemUser that = (SystemUser) o;
        return Objects.equals(userId, that.userId) &&
                Objects.equals(userName, that.userName) &&
                Objects.equals(userPhone, that.userPhone) &&
                Objects.equals(userSex, that.userSex) &&
                Objects.equals(userAge, that.userAge) &&
                Objects.equals(userClass, that.userClass) &&
                Objects.equals(userLevel, that.userLevel) &&
                Objects.equals(userBackground, that.userBackground) &&
                Objects.equals(status, that.status) &&
                Objects.equals(systemDeptId, that.systemDeptId) &&
                Objects.equals(systemSysId, that.systemSysId) &&
                Objects.equals(systemDept, that.systemDept);
    }

    @Override
    public int hashCode() {
        return Objects.hash(userId, userName, userPhone, userSex, userAge, userClass, userLevel, userBackground, status, systemDeptId, systemSysId, systemDept);
    }

    @Override
    public String toString() {
        return "SystemUser{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPhone='" + userPhone + '\'' +
                ", userSex='" + userSex + '\'' +
                ", userAge=" + userAge +
                ", userClass='" + userClass + '\'' +
                ", userLevel='" + userLevel + '\'' +
                ", userBackground='" + userBackground + '\'' +
                ", status='" + status + '\'' +
                ", systemDeptId=" + systemDeptId +
                ", systemSysId=" + systemSysId +
                ", systemDept=" + systemDept +
                '}';
    }
}
